package com.zld.smarket.controller;

import com.zld.smarket.pojo.GoodsType;
import com.zld.smarket.pojo.Role;
import com.zld.smarket.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
@RequestMapping("/right")
public class RightController {
    @Autowired
    private RoleService RoleService;

    @RequestMapping("/getRight")
    public Role getType(Long i) {
        System.out.println("==================");
        System.out.println(i);
        return RoleService.selectrole(i);
    }
}
